const packageJSON = require('./package.json')

module.exports = {
  devServer: {
    host: '0.0.0.0',
    port: 8082,
  },
  
  publicPath: '/book-to-be-big-fe-deploy/' + packageJSON.name + '/' + packageJSON.deploy.version + '/',
  outputDir: 'dist/' + packageJSON.name + '/' + packageJSON.deploy.version + '/',

  pages: {
    index: {
      entry: 'src/index/index.js',
      template: 'public/index.html',
      filename: 'index.html',
      title: '新闻',
      chunks: ['chunk-vendors', 'chunk-common', 'index']
    },
    detail: {
      entry: 'src/detail/detail.js',
      template: 'public/index.html',
      filename: 'detail.html',
      title: '新闻详情',
      chunks: ['chunk-vendors', 'chunk-common', 'detail']
    }
  }
}
